package org.tsinghua.blockchain.entity;


import java.io.Serializable;
import java.util.List;

public class RecordTypeInfo extends TransactionContentInfo implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private Long version;
	private String name;
	private List<FieldInfo> fields;

	public RecordTypeInfo(String name, List<FieldInfo> fields) {
		this.version = Long.valueOf(0L);
		this.name = name;
		this.fields = fields;
	}

	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<FieldInfo> getFields() {
		return this.fields;
	}

	public void setFields(List<FieldInfo> fields) {
		this.fields = fields;
	}

}
